<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>留言列表</title>
</head>
<body>
	<h1>留言列表</h1>
	<a href="list?tag=s"><input type="button" value="升序排列"></a>&nbsp&nbsp
	<a href="list?tag=j"><input type="button" value="降序排列"></a><br>
	<ul style="width:600px;">
		<c:forEach items="${list}" var="liuYan">
			<ul style="border:1px solid blue">
			<li>
				<span style="float: right;">
					<fmt:formatDate value="${liuYan.fdate}" pattern="yyyy年MM月dd日"/>
					<a href="delete?id=${liuYan.id}&sort=${sort}">删除</a>
				</span>
				姓名：${liuYan.name}
			</li>
			<li>
				邮箱：${liuYan.e_mail}
			</li>
			<li>
				内容：${liuYan.content}
			</li>
			</ul><br>
		</c:forEach>
	</ul>
</body>
</html>